/**
 * 信任登录相关API
 */

import { http, Method } from '@/utils/request.js';

import api from '@/config/api.js';



/**
 * 员工小程序自动登录
 * @param params
 * @data type,可用值:H5,PC,WECHAT_MP,DOUYIN_MP,KUAISHOU_MP,ALIPAY_MP,APP,UNKNOWN
 */
export function mpStaffAutoLogin(params) {
  return http.request({
    url: `${api.url}/wechat/getStaffUserId`,
    // url: 'passport/connect/miniProgram/auto-login',
    method: Method.GET,
    params,
  });
}
export function register(params) {
  return http.request({
    url: `${api.url}/wechat/register`,
    method: Method.POST,
    data:params,
  });
}
